package cn.tedu.fz;

public class Student {
    //属性 -- 私有化
    private int sid;
    private String name;
    private int age;
    public Student(){}
    //有参构造
    public Student(int sid, String name, int age) {
        this.sid = sid;
        this.name = name;
        this.age = age;
    }

    //提供公开的get/set方法
    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    //方法
    public void study(){

        System.out.println("学习~");
    }
}
